import request from '@/utils/request'

const api_name = '/ashes/brave'

export default {

  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/queryUserListData/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  lock(id, status) {
    return request({
      url: `${api_name}/updateUserStatus/${id}/${status}`,
      method: 'get'
    })
  },

  show(id) {
    return request({
      url: `${api_name}/queryUserInfo/${id}`,
      method: 'post'
    })
  },
  saveOrUpdate(searchObj){
    return request({
      url: `${api_name}/updateUserInfo`,
      method: 'post',
      data: searchObj
    })
  }
}
